package test00.test05.t02;

import java.util.function.Consumer;
import java.util.function.Predicate;

/**
 * @Author lzp
 * @Date 2024-04-10
 */
public class Test {
    public static void checkScore(float score, Predicate<Float> predicate){
        boolean test = predicate.test(score);
        System.out.println(test?"合格":"不合格");
    }

    public static void main(String[] args) {

       float fs = 59.9F;
       checkScore(fs,(s) -> s >= 60);

    }
}
